package com.naiterui.ehp.bs.cms.modules.devops.service;

import java.io.IOException;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.cms.modules.devops.vo.AppVersionVO;

/**
 * @author luao
 * @date 2022/4/1 6:06 PM
 **/
public interface VersionService {

    List<AppVersionVO> appVersionList(Integer status);

    void addAppVersion(AppVersionVO appVersionVO);

    void updateAppVersion(AppVersionVO appVersionVO) throws BusinessException;

    void versionEnable(Long id) throws BusinessException;

    void versionDisable(Long id) throws BusinessException;

    String uploadApk(MultipartFile file) throws BusinessException, IOException;
}
